<html>
<head>
  <![CDATA[ <#include "../../common/handlefielderror.ftl" > ]]>
  <link href="${contextPath}/css/layout.css" type="text/css" rel="stylesheet"></link>
  <script src="${request.contextPath}/static/js/calendarDlg.js"></script>
  <link href="../css/style.css" type="text/css" rel="stylesheet"></link>
  <script src="../js/validate.js" type="text/javascript" charset="utf-8"></script>
  <script src="../js/element.js" type="text/javascript" charset="utf-8"></script> 
  <script type="text/javascript" charset="utf-8">
    <![CDATA[ 
     function goback() {
        document.location = "${entityVar}Admin.action";
    }
    function submitForm() {
      <#if ${entityVar}.id?? >
        var action = "${entityVar}Admin-saveUpdate.action";
      <#else>
        var action = "${entityVar}Admin-saveAdd.action";
      </#if>
      if (!validate()) return;
      $("dataform").action=action;
      $("dataform").submit();
    }
    
    Event.observe(window, 'load', function() { 
        var bottomBtns = $$("input[btnclass='bottom']");
        initButtonCss(bottomBtns, "del_button3","del_button2","del_button1");
       
        Event.observe("saveBtn", "click", submitForm);
        Event.observe("cancelBtn", "click", goback);
      });

    ]]>
  </script>
</head>

<body>
<![CDATA[ 
<iframe width="174" height="172" name="gToday:normal:agenda.js" 
  id="gToday:normal:agenda.js" 
  src="${request.contextPath}/static/js/calendar/ipopeng.html?begin=1900-01-01&end=2100-12-31" 
  scrolling="no" frameborder="0" 
  style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;" />
]]>
<div id="field_msg_tip" class="tip_common" style="display: none;"></div>
<form id ="dataform" name="form1" action="" method="post" >
<table width="100%" border="0" cellspacing="0" cellpadding="0"
  class="YecSpec16" height="100%">
  <tr>
    <td height="15"></td>
  </tr>
  <tr>
    <td valign="top" align="center">
    <table width="90%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#FCFFFF" height="100%">
        <table width="100%" border="0" cellpadding="1" cellspacing="1"
          id="datatable">
          <!-- 字段列表位置 -->
        </table>
        </td>
      </tr>
      <tr>
        <td height="22px"></td>
      </tr>
      <!-- 页面提示用户的信息 -->
      <tr>
        <td id="tipinfo"></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td bgcolor="#C2CDF7" height="1"></td>
  </tr>
  <tr>
    <td bgcolor="#ffffff" height="1"></td>
  </tr>
  <tr style="height: 0px;">
    <td id="actionTip"></td>
  </tr>
  <tr>
    <td bgcolor="#C2CDF7" height="32" class="padding_left4">
    <table width="153" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100" align="center">
          <input type="button" id="saveBtn" btnclass="bottom" value="保存" />
        </td>
        <td width="53">
          <input type="button" id="cancelBtn" btnclass="bottom" value="取消" />
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</form>
</body>
</html>


